//package oop.demo.zoomanagementsystem;
package top.anka1.ims.ZooManagementSystem;
/**
 * Animal Class - Represents animals in the zoo
 * @author anka
 */
public class Animal {
    public String Name;
    public String Species;
    public int Age;
    public Animal(String animalName, String animalSpecies, int animalAge) { // Constructor
        this.Name = animalName;
        this.Species = animalSpecies;
        this.Age = animalAge;
    }
    public String getName() { // Get the name of the animal
        return Name;
    }
    public void setName(String name) { // Set the name of the animal
        this.Name = name;
    }
    public String getSpecies() { // Get the species of the animal
        return Species;
    }
    public void setSpecies(String species) { // Set the species of the animal
        this.Species = species;
    }
    public int getAge() { // Get the age of the animal
        return Age;
    }
    public void setAge(int age) { // Set the age of the animal
        this.Age = age;
    }
    public String display() { // Display the animal details
        System.out.print("Animal Name: " + Name + ", ");
        System.out.print("Animal Species: " + Species + ", ");
        System.out.println("Animal Age: " + Age);
        return "Animal Name: " + Name + ", \n" +
                "Animal Species: " + Species + ", \n" +
                "Animal Age: " + Age;
    }
}
